#include "StdAfx.h"
#include "FrameWindow.h"

CFrameWindow::CFrameWindow(void)
{
}

CFrameWindow::~CFrameWindow(void)
{
	
}


HRESULT CFrameWindow::OnAfterInit(void*)
{
	this->Create(NULL,_T("FrameWindow"),UI_WNDSTYLE_FRAME,0);
	this->CenterWindow();
	this->ShowWindow(true);

	return S_OK;
}

HRESULT CFrameWindow::OnBeforeUnint()
{
	return S_OK;
}

HRESULT CFrameWindow::OnAfterStart()
{
	return S_OK;
}

HRESULT CFrameWindow::OnBeforeStop()
{
	return S_OK;
}

UINT CFrameWindow::GetClassStyle()
{
	return WS_SYSMENU | WS_POPUP;
}

LPCTSTR CFrameWindow::GetWindowClassName() const
{
	return _T("framewindow");
}

CDuiString CFrameWindow::GetSkinFolder()
{
	return CDuiString(_T("skin\\"));
}

CDuiString CFrameWindow::GetSkinFile()
{
	return _T("framewindow.xml");
}

STDMETHODIMP_(HWND) CFrameWindow::GetFrameHWND()
{
	return GetHWND();
}